﻿@model AuditModel.AnnualEvent

@{
    ViewBag.Title = "Create";
}

<h2>创建新 @AuditResources.AnnualEvents.ObjectName</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@AuditResources.AnnualEvents.ObjectName</legend>

        <div class="editor-label">
            @AuditResources.AnnualEvents.ID
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ID)
            @Html.ValidationMessageFor(model => model.ID)
        </div>

        <div class="editor-label">
            @AuditResources.AnnualEvents.Title
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @AuditResources.AnnualEvents.Year
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Year)
            @Html.ValidationMessageFor(model => model.Year)
        </div>

        <div class="editor-label">
            @AuditResources.AnnualEvents.Status
        </div>
        <div class="editor-field">
            @Html.DropDownList("Status")
            @Html.ValidationMessageFor(model => model.Status)
        </div>
    </fieldset>


<div>
    <input type="submit" value="@AuditResources.UI.Save" />|
    @Html.ActionLink(AuditResources.UI.BackToList, "Index", null, new { Class = "button" })
</div>
}
